package com.qiangqiang.exception;

import com.qiangqiang.enums.StudentEnum;
import lombok.Getter;

/**
 * Created by q on 2018/2/5.
 */
@Getter
public class StudentException extends RuntimeException{
    private Integer code;
    public StudentException(StudentEnum studentEnum){
        super(studentEnum.getMessage());
        this.code=studentEnum.getCode();
    }
}
